<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Common extends CI_Controller {
	function __construct($module=null) {
		parent::__construct();
		
		//load model
		$this->load->model(array('user_session'));

		//get user session
		$user = $this->user_session->get();
		$this->user_data = $user;
		$this->mode = false;
		if (!$user){
			$this->is_logged_in = false;
		}else{
			$this->is_logged_in = true;
		}
	}
}